package com.qing.dao;

import com.qing.domain.Board;
import com.qing.domain.Post;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public interface BoardDao {
    void addBoard(Board board);
    List<Board> listAllBoard();
    List<Post> listAllPostsOfBoard(int boardId);
    Board findBoardByBoardId(int boardId);
    void updateBoardByBoard(Board board);
    Board findBoardByBoardName(String boardName);
    void deleteBoardByBoardId(int boardId);
    int boardPostNum(int boardId);
}
